package ATBMS.view.useredit;

import ATBMS.control.RegisterUserControl;
import java.awt.Frame;

/**
 * Register User View Implement
 */
public class RegisterUserViewImpl extends UserEditViewImpl {

    public RegisterUserViewImpl(Frame parent, RegisterUserControl ruc) {
        super(parent);

        okButton.setAction(ruc.getAction());
        okButton.setText("Register");
        okButton.setActionCommand("Register");

        cancelButton.setAction(ruc.getAction());
        cancelButton.setActionCommand("Cancel");
        cancelButton.setText("Cancel");
        setTitle("Register");
        addWindowListener(ruc.getWindowListener());
        rootPane.setDefaultButton(okButton);
    }
}
